// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Api from './api/index.js'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import { Toast } from 'mint-ui';
import 'mint-ui/lib/style.css'
import { Popup } from 'mint-ui';

import VDistpicker from 'v-distpicker'
require('swiper/dist/css/swiper.css')
import Header from './components/header'
import LunBo from './components/lunbo'

Vue.use(VueAwesomeSwiper)

Vue.component(Popup.name, Popup);
Vue.component('v-distpicker', VDistpicker)
Vue.component('v-header', Header)
Vue.component('v-lunbo', LunBo)
//将api文件绑定到全局
Vue.prototype.$api = Api
//将根路径绑定到全局
Vue.prototype.$src = Api.root

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
